import request from '@/utils/request'

// 查询月度补贴记录列表
export function listMoney(query) {
	return request({
		url: '/spm/money/list',
		method: 'get',
		params: query
	})
}

// 查询月度补贴记录详细
export function getMoney(moneyId) {
	return request({
		url: '/spm/money/' + moneyId,
		method: 'get'
	})
}

// 新增月度补贴记录
export function addMoney(data) {
	return request({
		url: '/spm/money',
		method: 'post',
		data: data
	})
}

// 修改月度补贴记录
export function updateMoney(data) {
	return request({
		url: '/spm/money',
		method: 'put',
		data: data
	})
}

// 删除月度补贴记录
export function delMoney(moneyId) {
	return request({
		url: '/spm/money/' + moneyId,
		method: 'delete'
	})
}